package com.lj.ljminsu.service.impl;

import com.lj.ljminsu.Bean.RoomDetilsDire;
import com.lj.ljminsu.dao.RoomDao;
import com.lj.ljminsu.service.IRoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomServiceImpl implements IRoomService {
    @Resource
    private RoomDao roomDao;

    @Override
    public List<RoomDetilsDire> selectRoomDetil() {
        List<RoomDetilsDire> roomDetilsDires = roomDao.selectRoomDetil();
        return roomDetilsDires;
    }

    @Override
    public List<RoomDetilsDire> selectRoomDetilByRenshu(Integer num) {
        return roomDao.selectRoomDetilByRenshu(num);
    }
}
